package com.settlement.system.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.settlement.system.common.base.IBaseEnum;
import lombok.Getter;

/**
 * 平台类型（对应数据字典中platform的字典项）
 *
 */

public enum PlatFormKeyEnum implements IBaseEnum<String> {

    TM("TMall", "天猫"),
    DY("DY", "抖音"),
    PDD("pdd", "拼多多"),
    SPH("sph", "视频号"),
    XHS("redBook", "小红书"),
    WD("wd", "微店"),
    YZ("yz", "有赞"),
    WM("wm", "微盟"),
    VIP("vip", "唯品会"),
    KS("ks", "快手"),
    JD("JD", "京东");


    @Getter
    @EnumValue //  Mybatis-Plus 提供注解表示插入数据库时插入该值
    private String value;

    @Getter
    // @JsonValue //  表示对枚举序列化时返回此字段
    private String label;

    PlatFormKeyEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

}
